.header {
    position: fixed;
    z-index: 10;
    width: 100%;
    height: 60px;
    background-color: white;
    left: 0;
    top: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    .header-inner {
        width: 1200px;
        height: 100%;
        position: relative;
        .logo {
            background-image: url(../assets/imgs/logo.svg);
            width: 120px;
            height: 66%;
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
        }
        .avatar-div {
            position: absolute;
            right: 0;
            top: 10px;
            .avatar {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                overflow: hidden;
                img {
                    width: 100%;
                    height: 100%;
                }
            }
            .icon-angle-down {
                font-size: 24px;
                margin-left: 10px;
            }
            .user-div {
                position: absolute;
                display: none;
                left: 50%;
                transform: translateX(-50%);
                top: 110%;
                background-color: white;
                border: 1px solid #eee;
                width: 140px;
                padding-bottom: 20px;
                .cell {
                    padding: 10px 0px 10px 20px;
                    margin-top: 20px;
                    &:hover {
                        background-color: #efefef;
                    }
                    div:last-child {
                        font-size: 14px;
                        margin-left: 20px;
                    }
                }
            }
        }
    }
}

.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 30px;
    color: #888;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    background-color: white;
    div {
        font-size: 14px;
        &:last-child {
            margin-left: 5px;
            color: #323232;
        }
    }
}

.add-div {
    position: fixed;
    display: none;
    width: 570px;
    padding: 20px 20px;
    border: 1px solid #00b4cf;
    background-color: white;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    .icon-close {
        position: absolute;
        right: 10px;
        top: 10px;
        font-size: 20px;
        color: #00b4cf;
        padding: 10px;
        margin: -10px;
        cursor: pointer;
    }
    .jiao {
        position: absolute;
        z-index: 2;
        width: 14px;
        height: 14px;
        left: 27px;
        top: -8px;
        background-color: white;
        border-top: 1px solid #00b4cf;
        border-right: 1px solid #00b4cf;
        transform: rotate(-45deg);
    }
    &.bottom {
        .jiao {
            top: 160px;
            transform: rotate(135deg);
        }
    }
    .title {
        font-size: 14px;
        color: #2d4054;
    }
    input {
        width: 100%;
        border-radius: 5px;
        padding: 5px 10px;
        margin-top: 20px;
        box-sizing: border-box;
        outline: none;
    }
    .btn-div {
        margin-top: 30px;
        .btn {
            padding: 5px 10px;
            color: white;
            font-size: 14px;
            &.add-btn {
                background-color: #00b4cf;
                &:hover {
                    background-color: #01869a;
                }
            }
            &.cancle-btn {
                margin-left: 30px;
                background-color: #2d4054;
                &:hover {
                    background-color: #435466;
                }
            }
        }
    }
}

.main {
    position: relative;
    width: 1200px;
    height: 100%;
    box-sizing: border-box;
    padding-top: 60px;
    margin: 0 auto;
    .sidebar {
        width: 240px;
        height: 100%;
        box-sizing: border-box;
        position: relative;
        background-color: #2d4054;
        padding: 30px 0;
        .side-el {
            width: 100%;
            height: 45px;
            color: #ccc;
            padding: 0 40px;
            margin-bottom: 20px;
            .text {
                margin-left: 20px;
            }
            &:hover,
            &.on {
                background-color: #435466;
                color: #00b4cf;
            }
        }
        .history {
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            padding: 10px;
            .title {
                font-size: 24px;
                color: #ccc;
            }
            .list {
                height: 400px;
                margin-top: 10px;
                overflow-x: hidden;
                overflow-y: scroll;
                &::-webkit-scrollbar {
                    display: none;
                }
                li {
                    font-size: 12px;
                    color: #999;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    margin-top: 10px;
                    &:hover {
                        color: #00b4cf;
                    }
                }
            }
        }
    }
    .main-content {
        position: relative;
        flex: 1;
        padding: 20px 0 0 40px;
        .top-div {
            .top-info {
                position: relative;
                width: 260px;
                height: 130px;
                div {
                    color: white;
                }
                &.building {
                    background-color: #ff9a2a;
                }
                &.idle {
                    background-color: #7fba39;
                }
                .title {
                    position: absolute;
                    font-weight: bold;
                    top: 10px;
                    left: 10px;
                }
                [class^="icon-"] {
                    font-size: 144px;
                    opacity: 0.2;
                }
                .icon-cog {
                    animation: rotate_1 2s infinite linear;
                }
                .number {
                    position: absolute;
                    font-size: 48px;
                    right: 10px;
                    bottom: 10px;
                }
            }
            .all-info {
                width: 260px;
                height: 130px;
                background-color: white;
                .info-cell {
                    width: 33%;
                    div:first-child {}
                }
            }
        }
        .tool-bar {
            position: relative;
            width: 100%;
            height: 50px;
            background-color: white;
            margin-top: 20px;
            .type-cell {
                position: relative;
                width: 100px;
                height: 100%;
                font-size: 14px;
                box-sizing: border-box;
                border-right: 1px solid #eee;
                &.on {
                    color: #00b4cf;
                    border-bottom: 3px solid #00b4cf;
                }
            }
            .search-bar {
                position: relative;
                width: 200px;
                height: 30px;
                padding: 0 10px;
                margin-left: 30px;
                box-sizing: border-box;
                background-color: #F3F3F3;
                border-top: 2px solid #eee;
                border-left: 2px solid #eee;
                .input-div {
                    flex: 1;
                    padding-left: 10px;
                    input {
                        border: 0;
                        width: 100%;
                        background-color: transparent;
                        outline: none;
                    }
                }
            }
            .list-type {
                position: absolute;
                height: 100%;
                right: 0;
                top: 0;
                padding: 0 30px 0 0;
                [class^="icon-"] {
                    margin-left: 30px;
                    font-size: 20px;
                    &.on {
                        color: #00b4cf;
                    }
                }
            }
        }
        .main-list {
            position: relative;
            flex: 1;
            overflow-x: hidden;
            overflow-y: scroll;
            &::-webkit-scrollbar {
                display: none;
            }
            .list-cell {
                position: relative;
                padding: 20px;
                margin-top: 20px;
                background-color: white;
                .infos {
                    position: relative;
                    div {
                        font-size: 14px;
                    }
                    [class^="icon-"] {
                        margin-left: 20px;
                        font-size: 24px;
                        color: #888;
                    }
                    .siteurl {
                        margin-left: 10px;
                        font-weight: bold;
                        color: #00b4cf;
                    }
                    .status {
                        margin-left: 20px;
                        font-size: 14px;
                        color: white;
                        padding: 0 5px;
                        &.building {
                            background-color: #ff9a2a;
                        }
                        &.idle {
                            background-color: #7fbc39;
                            margin-right: 30px;
                        }
                    }
                    .ip,
                    .filepath {
                        margin-left: 10px;
                    }
                }
                .tools {
                    position: relative;
                    margin-left: 20px;
                    .add-icon {
                        width: 30px;
                        height: 30px;
                        cursor: pointer;
                        background-color: #00b4cf;
                        &:hover {
                            background-color: #01869a;
                        }
                        div {
                            color: white;
                        }
                    }
                    .system-cell {
                        position: relative;
                        margin-left: 20px;
                        padding: 0 5px;
                        background-color: #efefef;
                        font-size: 16px;
                        height: 30px;
                        -webkit-user-select: none;
                        cursor: pointer;
                        &:hover {
                            background-color: #e1e4e6;
                        }
                        [class^="icon-"] {
                            margin-left: 6px;
                        }
                    }
                }
                .deny-icon {
                    position: absolute;
                    height: 30px;
                    right: 30px;
                    bottom: 30px;
                    padding: 0 15px;
                    color: white;
                    font-size: 14px;
                    -webkit-user-select: none;
                    cursor: pointer;
                    background-color: #00b4cf;
                    &:hover {
                        background-color: #01869a;
                    }
                    div:last-child {
                        margin-left: 6px;
                    }
                }
            }
        }
    }
    @keyframes rotate_1 {
        from {
            transform: rotate(0deg);
        }
        to {
            transform: rotate(360deg);
        }
    }
}